# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-cmudict
pkgver=1.0.2
pkgrel=1
pkgdesc="A versioned Python wrapper package for The CMU Pronouncing Dictionary data files"
url="https://github.com/prosegrinder/python-cmudict"
arch="noarch"
license="GPL-3.0-only"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://pypi.python.org/packages/source/c/cmudict/cmudict-$pkgver.tar.gz"
builddir="$srcdir/cmudict-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
e6ff259e130bf95d36b1c7e116ec6ef28699629ac29dfb3ed3d66f17cecda643abfa864b703d45af3f92dc0c5be1e45329b28d61586a42b1899dae5359ee1e9b  cmudict-1.0.2.tar.gz
"
